]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Remove logo in upper left corner
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 23 Mar 2013 00:29:23 +0000 (01:29 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 7 May 2013 18:52:58 +0000 (20:52 +0200)
With optional branding now being shown below the user list, we can
remove the unloved instance in the upper left corner ...

https://bugzilla.gnome.org/show_bug.cgi?id=694912

js/gdm/loginDialog.js
js/ui/panel.js
js/ui/sessionMode.js

index bba17ae68db49c0055a2d9fe3c72d4958b8dcbf7..b833f95a9031b886a341643c2161c954b6b29eab 100644 (file)
@@ -57,36 +57,6 @@ const WORK_SPINNER_ANIMATION_TIME = 0.3;
 
 let _loginDialog = null;
 
-const LogoMenuButton = new Lang.Class({
-    Name: 'LogoMenuButton',
-    Extends: PanelMenu.Button,
-
-    _init: function() {
-        this.parent(0.0, null, true);
-
-        this._settings = new Gio.Settings({ schema: GdmUtil.LOGIN_SCREEN_SCHEMA });
-        this._settings.connect('changed::' + GdmUtil.LOGO_KEY,
-                               Lang.bind(this, this._updateLogo));
-
-        this._iconBin = new St.Bin();
-        this.actor.add_actor(this._iconBin);
-
-        this._updateLogo();
-    },
-
-    _updateLogo: function() {
-        let path = this._settings.get_string(GdmUtil.LOGO_KEY);
-        let icon = null;
-
-        if (path) {
-            let file = Gio.file_new_for_path(path);
-            let cache = St.TextureCache.get_default();
-            icon = cache.load_uri_async(file.get_uri(), -1, _LOGO_ICON_HEIGHT);
-        }
-        this._iconBin.set_child(icon);
-    }
-});
-
 const UserListItem = new Lang.Class({
     Name: 'UserListItem',
 
index 0de1494be7d4e53d9f3e37c7e774ec8884a56867..1aa2d8c9aa0ef0643263bd30fdb133f584cb65b4 100644 (file)
@@ -929,7 +929,6 @@ const PANEL_ITEM_IMPLEMENTATIONS = {
     'volume': imports.ui.status.volume.Indicator,
     'battery': imports.ui.status.power.Indicator,
     'lockScreen': imports.ui.status.lockScreenMenu.Indicator,
-    'logo': imports.gdm.loginDialog.LogoMenuButton,
     'keyboard': imports.ui.status.keyboard.InputSourceIndicator,
     'powerMenu': imports.gdm.powerMenu.PowerMenuButton,
     'userMenu': imports.ui.userMenu.UserMenuButton
index 78e340b55069ec286ca28019681bb982baa19e9c..edf2e0623613a2a0978519ea5243c71da8374ae5 100644 (file)
@@ -45,7 +45,7 @@ const _modes = {
         unlockDialog: imports.gdm.loginDialog.LoginDialog,
         components: ['polkitAgent'],
         panel: {
-            left: ['logo'],
+            left: [],
             center: ['dateMenu'],
             right: ['a11yGreeter', 'display', 'keyboard',
                     'volume', 'battery', 'powerMenu']